@extends('Admin.layouts.application')
@section('content')
    <div class="admin-content">
        <div class="admin-content-body">
            <div class="am-cf am-padding am-padding-bottom-0">
                <div class="am-fl am-cf">
                    <strong class="am-text-primary am-text-lg">新增入住用户</strong> /
                    <small>Create A New Username</small>
                </div>
            </div>

            <hr>
            @include('Admin.layouts._flash')
            <form class="am-form" method="post" action="{{route('member.store')}}">
                {!! csrf_field() !!}
                <div class="am-g am-margin-top">
                    <div class="am-u-sm-4 am-u-md-2 am-text-right">
                        房间号
                    </div>
                    <div class="am-u-sm-8 am-u-md-4 am-u-end col-end">
                            <select data-am-selected="{btnWidth: '100%',  btnStyle: 'secondary', btnSize: 'sm', maxHeight: 360}"
                                    name="room_id">



                                    @foreach ($rooms as $room)

                                        @if(in_array($room->id, $cate_id))
                                            continue;
                                        @else
                                            <option value="{{ $room->id }}" >
                                                {{ $room->room }}
                                            </option>
                                        @endif

                                    @endforeach

                            </select>
                        </div>
                    
                </div>

                <div class="am-g am-margin-top">
                    <div class="am-u-sm-4 am-u-md-2 am-text-right">
                        入住用户
                    </div>
                    <div class="am-u-sm-8 am-u-md-4 am-u-end col-end">
                        <input type="text" name="username" class="am-input-sm">
                    </div>
                    <div class="am-hide-sm-only am-u-md-6">*必填</div>
                </div>

                <div class="am-g am-margin-top">
                    <div class="am-u-sm-4 am-u-md-2 am-text-right">
                        性别
                    </div>
                    <div class="am-u-sm-8 am-u-md-4">
                        <label class="am-radio-inline">
                            <input type="radio" value="1" name="sex" checked=""> 男
                        </label>
                        <label class="am-radio-inline">
                            <input type="radio" value="0" name="sex"> 女
                        </label>
                    </div>
                    <div class="am-u-sm-12 am-u-md-6"></div>
                </div>

                <div class="am-g am-margin-top-sm">
                    <div class="am-u-sm-12 am-u-md-2 am-text-right admin-form-text">
                        排序
                    </div>
                    <div class="am-u-sm-12 am-u-md-10">
                    </div>
                    <div class="am-u-sm-8 am-u-md-4 am-u-end col-end">
                        <input type="text" name="sort_order" class="am-input-sm" value="99">
                    </div>

                </div>
                <div class="am-margin">
                    <button type="submit" class="am-btn am-btn-primary am-btn-xs">提交保存</button>
                    <a href="javascript:history.go(-1);" class="am-btn am-btn-primary am-btn-xs">放弃保存</a>
                </div>
            </form>
        </div>

        @include('Admin.layouts._footer')
    </div>
@endsection

@section('js')
    <script src="/assets/xSystem/js/jquery.html5-fileupload.js"></script>
    <script src="/assets/xSystem/js/upload.js"></script>
    <script src="/assets/xSystem/vendor/ckfinder/ckfinder.js"></script>
    <script src="/assets/xSystem/js/ck_upload.js"></script>
@endsection
